#ifndef __AT24CXX_H_
#define __AT24CXX_H_

#include "system.h"

#define AT24C01 127
#define AT24C02 255
#define AT24C04 511
#define AT24C08 1023
#define AT24C16 2047
#define AT24C32 4095
#define AT24C64 8191

#define EEPROM AT24C02

u8 AT24CXX_Check(void);
void AT24CXXX_Init(void);
void AT24CXX_WriteOneByte(u16 WORD_ADDR,u8 Data);
u8 AT24CXX_ReadeOneByte(u16 WORD_ADDR);
void AT24CXX_WriteMultipleData(u16 WORD_ADDR,u32 Data,u8 Len);
u32 AT24CXX_ReadMultipleData(u16 WORD_ADDR,u8 Len);

#endif
